public class Object01 {
    public static void main(String[] args) {
        //变量
        String cat1Name = "小白";
        int cat1Age = 2;
        String cat1Color = "blue";

        String cat2Name = "小黑";
        int cat2Age = 3;
        String cat2Color = "black";

        //数组
        String[] cat1 = {"小白","2","blue"};
        String[] cat2 = {"小黑","3","black"};

        //使用oop对象
        new Cat();
        Cat cat01 = new Cat();
        Cat cat02 = new Cat();

    }

}

class Cat {
    private String name;
    private int age;
    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}